<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>VueTest</title>
</head>
<body>
<!--view层，模板-->
<div id="ace">
    <button v-on:click="counter += 1">Add 1</button>
    <p>The button above has been clicked {{ counter }} times.</p>
</div>
<!--1.导入Vue.js-->
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.min.js"></script>
<script type="text/javascript">
    let vue = new Vue({
        el: '#ace',
        data: {
            counter: 0
        }
    });
</script>
<!--点击按钮属性值就 + 1-->
</body>
